package org.eclipse.baseball;

import static org.junit.Assert.*;

import java.io.FileNotFoundException;

import org.eclipse.football.League;
import org.eclipse.football.Team;
import org.junit.Test;


public class emptyTeam {

	@Test
	public void test() throws FileNotFoundException {
		// Make an empty league
		League league = new League();
		
		// Make a team with a blank name
		Team team = new Team("");
		
		// Get the size of the league
		int old_size = league.getTeams().size();
		
		// Add this team to the league
		league.addTeam(team);
		
		// Check if the size is the same
		if(old_size != league.getTeams().size()){
			// If not then fail
			fail("Added team with blank name to league.");
		}
	}

}
